﻿<%@ Page Language="C#" MasterPageFile="~/masterpage.master" Title="Attendance Entry" AutoEventWireup="true" CodeFile="StudentEntry.aspx.cs" Inherits="StudentEntry" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">

	<script type="text/javascript">

	var index;
	var oldcontrol;
	var bclosed = true;
	var currentcode = '';
	
	function cancel(control) {


		for (i = 0; i < control.parentNode.childNodes.length; i++) {
			changeState(control.parentNode.childNodes[i]);
		}

		var td = control.parentNode;

		var index = 0;


		for (var i = 0; i < td.parentNode.childNodes.length; i++)
			if (td.parentNode.childNodes[i] == td) {
			index = i;
			break;
		}

		for (var i = index - 1; i >= index - 7; i--) {

			for (var j = 0; j < td.parentNode.childNodes[i].childNodes.length; j++) {
				changeState(td.parentNode.childNodes[i].childNodes[j]);
			}

			td.parentNode.childNodes[i].childNodes[0].value = td.parentNode.childNodes[i].childNodes[0].oldvalue;
			td.parentNode.childNodes[i].childNodes[3].title = td.parentNode.childNodes[i].childNodes[3].oldtitle;
			updateView(td.parentNode.childNodes[i].childNodes[0]);
			
		}
		bclosed = true;
		SycnTables();

		
	}

	function edit(control) {
		if ((oldcontrol != null) && (oldcontrol != control)&&(!bclosed))
			cancel(oldcontrol);

		oldcontrol = control;
		bclosed = false;
		for(  i =0; i < control.parentNode.childNodes.length; i++)
		{
			changeState(control.parentNode.childNodes[i]);
		}

		var td = control.parentNode;

		 index = 0;


		for (var i = 0; i < td.parentNode.childNodes.length; i++)
			if (td.parentNode.childNodes[i] == td) {
			index = i;
			break;
		}

		for (var i = index - 1; i >= index - 7; i--) {

			for (var j = 0; j < td.parentNode.childNodes[i].childNodes.length; j++) {
				changeState(td.parentNode.childNodes[i].childNodes[j]);
			}

			td.parentNode.childNodes[i].childNodes[0].oldvalue = td.parentNode.childNodes[i].childNodes[0].value;
			td.parentNode.childNodes[i].childNodes[3].oldtitle = td.parentNode.childNodes[i].childNodes[3].title;

		}
		SycnTables();
		
	}
	var xhReq;

	function confirmctl(control) {
		for (i = 0; i < control.parentNode.childNodes.length; i++) {
			changeState(control.parentNode.childNodes[i]);
		}

		var td = control.parentNode;

		var index = 0;


		var arguments;
		for (var i = 0; i < td.parentNode.childNodes.length; i++)
			if (td.parentNode.childNodes[i] == td) {
			index = i;
			break;
		}
		var result = control.parentNode.childNodes[3].value;
		var comments = '';
	
		for (var i = index - 1; i >= index - 7; i--) {

			for (var j = 0; j < td.parentNode.childNodes[i].childNodes.length; j++) {
				var control = td.parentNode.childNodes[i].childNodes[j];

				changeState(control);

				if (control.type == 'text') {

					var other_codes = getothercodes(control);
					if (other_codes != null)
						result = control.value + other_codes + ',' + result;
					else
						result = control.value + ',' + result;
				}
			}

			td.parentNode.childNodes[i].childNodes[3].innerHTML = td.parentNode.childNodes[i].childNodes[0].value;
			comments = td.parentNode.childNodes[i].childNodes[3].title + '###' + comments;

			var control = td.parentNode.childNodes[i].childNodes[0]
			updateView(control);
		}
		bclosed = true;
		
		result = result + ',' + comments;
		xhReq = getXMLHttpRequest();

		var params = "command=" + result;
		xhReq.open("POST", "SaveDataRow.ashx", true);
		xhReq.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
		xhReq.setRequestHeader("Content-length", params.length);
		xhReq.setRequestHeader("Connection", "close");

		xhReq.onreadystatechange = function() {

			if (xhReq.readyState != 4) {
				return;
			}

			var serverresponse = xhReq.responseXML;

			if (!serverresponse) {
				alert("<%= PAConfiguration.NoConnectionMessage %>");
			}

			if (serverresponse.childNodes.length == 0) {
				alert("<%= PAConfiguration.NoConnectionMessage %>");
			}

		}

		xhReq.send(params);

		SycnTables();
		
	}


	var allcodes = 'EMFOPQWS';
  function GetCommentCodes() {
	  var result = '';

	  for (var i = 0; i < allcodes.length; i++) {

	    var controlName = 'cb' + allcodes[i] + 'Item';
	    var cbCode = document.getElementById(controlName);

	    if (cbCode != null) {
	      if (cbCode.checked) {

	        if (controlName[2] == 'W') {
	          var number = document.getElementById("ddNumbers").value;
	          for (var j = 0; j < parseInt(number); j++) {
	            result += allcodes[i];
	          }
	        }
	        else if (controlName[2] == 'S') {
	          var number = document.getElementById("ddNumbers1").value;
	          for (var j = 0; j < parseInt(number); j++) {
	            result += allcodes[i];
	          }
	        }
	        else {
	          result += allcodes[i];
	        }
	      }
	    }
	  }

	  return result;
	}

	function madeComment(control, e) {

	  var codes = control.parentNode.childNodes[0].value;

	  var other_codes = getothercodes(control);


	  if ((codes == 'N') || (codes == ''))
	    return;

	  var comment = document.getElementById('commentWindow');

	  for (var i = 0; i < allcodes.length; i++) {

	    var controlName = 'cb' + allcodes[i] + 'Item';
	    var cbCode = document.getElementById(controlName);

	    if (cbCode != null) {
	      cbCode.checked = false;
	      cbCode.disabled = '';
	    }
	  }

	  var controlName = 'cb' + codes + 'Item';
	  var cbCode = document.getElementById(controlName);
	  cbCode.disabled = 'disabled';
	  cbCode.checked = true;

	  var dd = document.getElementById("ddNumbers");
	  dd.value = 1;
	  var dd1 = document.getElementById("ddNumbers1");
	  dd1.value = 1;

	  var td = document.getElementById("tdNumbers");
	  td.innerHTML = "";/* td.innerHTML = "(1)";*/
	  var td1 = document.getElementById("tdNumbers1");
	  td1.innerHTML = "";/* td1.innerHTML = "(1)";*/

	  if (other_codes != null) {
	    var num = 0;
	    var num1 = 0;
	    for (var i = 0; i < other_codes.length; i++) {

	      if (other_codes[i] == 'W') {
	        num++;
	      }

	      if (other_codes[i] == 'S') {
	        num1++;
	      }

	      var controlName = 'cb' + other_codes[i] + 'Item';
	      var cbCode = document.getElementById(controlName);

	      if (cbCode != null) {
	        cbCode.checked = true;
	      }
	    }

	    if (num > 0) {
	      dd.value = num;
	      td.innerHTML = "(" + String(num) + ")";
	    }
	    if (num1 > 0) {
	      dd1.value = num1;
	      td1.innerHTML = "(" + String(num1) + ")";
	    }
	  }

	  comment.style.visibility = '';
	  comment.style.left = (e.clientX + 100 - (window.screen.width - 800) / 2) + "px";
	  comment.style.top = (e.clientY) + 'px';

	  var text = document.getElementById('ContactMemoInformation');
	  text.focus();
	  text.value = control.parentNode.childNodes[3].title;
	  text.control = control.parentNode.childNodes[3];
	  text.othercontrol = control.parentNode.childNodes[0];

	  if (isadmin == 0) {

	    var controlName = 'cbEItem';
	    var cbCode = document.getElementById(controlName);
	    cbCode.disabled = 'disabled';

	    controlName = 'cbWItem';
	    cbCode = document.getElementById(controlName);
	    cbCode.disabled = 'disabled';

	    controlName = 'cbQItem';
	    cbCode = document.getElementById(controlName);
	    cbCode.disabled = 'disabled';

	    controlName = 'cbSItem';
	    cbCode = document.getElementById(controlName);
	    cbCode.disabled = 'disabled';

	    /*dd.style.visibility = 'hidden';
	    dd1.style.visibility = 'hidden';*/
	    dd.style.display = 'none';
	    dd1.style.display = 'none';
	  }
	  else {
	    td.style.display = 'none';
	    td1.style.display = 'none';
	  }
	}

	function commentOk(comment) {
		var text = document.getElementById('ContactMemoInformation');
		text.control.title = text.value;

		var code = text.othercontrol.value;
		var codes = GetCommentCodes();

		if (codes != null) {
			var index = codes.indexOf(code);
			if (index >= 0) {
			    codes = codes.replace(code, "");
				//var lenght = codes.length;
				//codes = codes.substring(0, index) + codes.substring(index + 1, lenght - index + 1);
			}

			if (codes != '') {
				text.control.title = 'Other Codes:' + codes;
			}
		}

		text.othercontrol.setAttribute('other_codes', codes);
		comment.parentNode.parentNode.parentNode.parentNode.parentNode.style.visibility = 'hidden';
		updateView(text.control);

		if (bclosed) {
			bclosed = false;
			changeCode(text.control, null);
			bclosed = true;
		}

	}

	function commentCancel(comment) {
		comment.parentNode.parentNode.parentNode.parentNode.parentNode.style.visibility = 'hidden';
	}
	
	function changeState(button) {
		if (button.style.visibility == 'hidden')
			button.style.visibility = '';
		else button.style.visibility = 'hidden';

		if (button.style.position == 'absolute')
			button.style.position = '';
		else button.style.position = 'absolute';
	}
	
	function getSelectedDefaultCode() {
		var elements = document.getElementsByTagName("INPUT");

		for (i = 0; i < elements.length; i++) {
			if (elements[i].type == "radio") {
				if (elements[i].checked) {

					var code;
					code = elements[i].parentNode.childNodes[1].innerHTML;

					return code.charAt(0);
				}
			}
		}
	}

	function getXMLHttpRequest() {
		if (window.XMLHttpRequest) {
			return new window.XMLHttpRequest;
		}
		else {
			try {
				return new ActiveXObject("MSXML2.XMLHTTP.6.0");
			}
			catch (ex) {
				return null;
			}
		}
	}


	function changeCode(control, e) {
		if (e != null) {
			var ctrlPressed = 0;
			var altPressed = 0;
			var shiftPressed = 0;

			if (parseInt(navigator.appVersion) > 3) {

				var evt = e ? e : window.event;

				if (document.layers && navigator.appName == "Netscape"
      && parseInt(navigator.appVersion) == 4) {
					// NETSCAPE 4 CODE
					var mString = (e.modifiers + 32).toString(2).substring(3, 6);
					shiftPressed = (mString.charAt(0) == "1");
					ctrlPressed = (mString.charAt(1) == "1");
					altPressed = (mString.charAt(2) == "1");
					self.status = "modifiers=" + e.modifiers + " (" + mString + ")"
				}
				else {
					// NEWER BROWSERS [CROSS-PLATFORM]
					shiftPressed = evt.shiftKey;
					altPressed = evt.altKey;
					ctrlPressed = evt.ctrlKey;
					self.status = ""
    + "shiftKey=" + shiftPressed
    + ", altKey=" + altPressed
    + ", ctrlKey=" + ctrlPressed
				}

				if (ctrlPressed) {
					madeComment(control, e);
					return;
				}
			}
		}
	
		
		var result = control.parentNode.childNodes[2].value;
		var comments = '';
		var defaultcode = getSelectedDefaultCode();
		currentcode = defaultcode;
		for (var j = 0; j < control.parentNode.childNodes.length; j++) {
			var ctl = control.parentNode.childNodes[j];

			if (ctl.type == 'text') {
			
			

			var codes = getothercodes(ctl);

			if ((bclosed) && (codes != null) && (codes != '') && (ctl.value != defaultcode)) {
				alert("Please switch to edit mode to change contact type.");
				return;
			}


			if ((ctl.value != 'N') && (ctl.value != '') && (ctl.value != defaultcode) && (e != null)) {
			
					if ( !confirm("Please confirm a contact type change"))
						return;
				}


				if (e != null) {
					ctl.value = defaultcode;
				}

				var other_codes = getothercodes(ctl);
				if (other_codes != null)
					result = ctl.value + other_codes + ',' + result;
				else
					result = ctl.value + ',' + result;

				}

				if (ctl.tagName == 'SPAN') {
					comments = ctl.title + '###' + comments;
				}
			}

			result = result + ',' + comments;

		for (var j = 0; j < control.parentNode.childNodes.length; j++) {
			var ctl = control.parentNode.childNodes[j];

			if (e != null) {
				if (ctl.type == 'text') {
					ctl.value = defaultcode;

				}

				if (ctl.tagName == 'SPAN') {
					ctl.innerHTML = defaultcode;
				}
			}

			}			
			updateView(control);

			xhReq = getXMLHttpRequest();

			var params = "command=" + result;
xhReq.open("POST", "SaveData.ashx", true);
			xhReq.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
			xhReq.setRequestHeader("Content-length", params.length);
			xhReq.setRequestHeader("Connection", "close");

			xhReq.onreadystatechange = function() {

				if (xhReq.readyState != 4) {
					return;
				}

				var serverresponse = xhReq.responseXML;

				if (!serverresponse) {
					alert("<%= PAConfiguration.NoConnectionMessage %>");
				}

				if (serverresponse.childNodes.length == 0) {
					alert("<%= PAConfiguration.NoConnectionMessage %>");
				}

			}

			xhReq.send(params);




		}

		function getothercodes(control) {

			if (control.tagName == 'TD') {
				return control.childNodes[0].getAttribute('other_codes');
			}

			return control.parentNode.childNodes[0].getAttribute('other_codes');
		}


		function gettitle(control) {
			
			if (control.tagName == 'TD') {
				return control.childNodes[3].title;
			}

			return control.parentNode.childNodes[3].title;
		
		}
	function updateView(control) {

		var defaultcode = getSelectedDefaultCode();
		var td = control.parentNode;

		index = 0;
		
		var browseroffset = 0;
		var tr = td.parentNode;
		if (tr.childNodes.length == 19)
			browseroffset = 1;

		
		for (var i = 0; i < td.parentNode.childNodes.length; i++)
			if (td.parentNode.childNodes[i] == td) {
			index = i;
			break;
		}

		var start = 1 + browseroffset;
		var end = 8 + browseroffset;
		if (index > 7 + browseroffset) {
			start = 9 + browseroffset;
			end = 16 + browseroffset;
		}



		var flag = true;
		var alln = true;

		for (i = start; i < end; i++) {

			if (currentcode == 'N') {
				tr.childNodes[i].childNodes[0].value = 'N'
				tr.childNodes[i].childNodes[3].innerHTML = 'N'
			}
			
			if ((tr.childNodes[i].childNodes[0].value != 'N') && (tr.childNodes[i].childNodes[0].value != '')) {
			
				flag = false;
			}
			if (tr.childNodes[i].childNodes[0].value != 'N') {

				alln = false;
			}
		}


		if (alln) {
			for (i = start; i < end; i++) {
				tr.childNodes[i].style.backgroundColor = "Yellow";
			}
		}
		else {
			for (i = start; i < end; i++) {
				tr.childNodes[i].style.backgroundColor = "";
				

				if ((getothercodes(tr.childNodes[i]) != null) && (getothercodes(tr.childNodes[i]) != '')) {
					tr.childNodes[i].style.backgroundColor = "LightBlue";
				}
			}
		}
		alln = true;
		flag = true;
		for (i = 1 + browseroffset; i < 8 + browseroffset; i++) {
			if ((tr.childNodes[i].childNodes[0].value != 'N') && (tr.childNodes[i].childNodes[0].value != '')) {
				flag = false;

			}

			if (tr.childNodes[i].childNodes[0].value != 'N') {
			
				alln = false;
			}
		}
		
		for (i = 1 + browseroffset; i < 8 + browseroffset; i++) {

			if (!flag) {

				if (tr.childNodes[i].childNodes[0].value == 'N') {

					tr.childNodes[i].childNodes[0].value = '';
					td.parentNode.childNodes[i].childNodes[3].innerHTML = '';
				}
			}
		}


		var flag2 = true;
		var alln2 = true;
		for (i = 9 + browseroffset; i < 16 + browseroffset; i++) {
			if ((tr.childNodes[i].childNodes[0].value != 'N') && (tr.childNodes[i].childNodes[0].value != '')) {
				flag2 = false;
				
			}
			if ((tr.childNodes[i].childNodes[0].value != 'N')) {
					alln2 = false;
				
				}
			}
			
		if (alln || alln2) {
			tr.childNodes[0 + browseroffset].style.fontWeight = 'bold';
		}
		else {
			tr.childNodes[0 + browseroffset].style.fontWeight = 'normal';
		}
		
		for (i = 9 + browseroffset; i < 16 + browseroffset; i++) {

			if (!flag2) {
				
				if (tr.childNodes[i].childNodes[0].value == 'N') {

					tr.childNodes[i].childNodes[0].value = '';
					td.parentNode.childNodes[i].childNodes[3].innerHTML = '';
				}
			}
		}

	}

	function validateInput(control) {

		currentcode = str = control.value;
		var str = control.value;
		if (str == null || str.lentgh == 0) {
			
			return false;
		}

	if (str == 'N' || str == 'E' || str == 'W' || str == 'M' || str == 'F' || str == 'P' || str == 'Q' || str == 'O' || str == 'S' || str == '')
		{
			return true;
		}
		alert('Invalid Data')
		control.value = "";
		control.focus();
		return false;
	}

	function SycnTables() {
		var table = document.getElementById("headertable");
		var tabletosync = document.getElementById("ctl00_ContentPlaceHolder1_gvEntries");
	
		//alert(tabletosync.childNodes[1].childNodes[0].childNodes[1].offsetWidth);
		var flag = false;
		var browseroffset = 0;
		//		alert(tabletosync.childNodes[0].childNodes[0].childNodes.length);
		if (tabletosync.childNodes.length == 1) {
			if (tabletosync.childNodes[0].childNodes[0].childNodes.length == 17)
			browseroffset = 0;
		}

		if (tabletosync.childNodes.length == 2) {
			if (tabletosync.childNodes[1].childNodes[0].childNodes.length == 19)
				browseroffset = 1;
		}
		

		
		//alert(tabletosync.childNodes[0].childNodes[0].childNodes.length);

		for (i = 0; i < table.childNodes[0].childNodes[0].childNodes.length - 1; i++) {
			var cell = table.childNodes[0].childNodes[0].childNodes[i];
			var othercell = tabletosync.childNodes[browseroffset].childNodes[0].childNodes[i + browseroffset];
			var diff = 3;

			if (!flag)
				diff = 3;

			cell.style.width = (othercell.offsetWidth - diff) + "px";

			flag = !flag;

			//			if (cell.offsetWidth > othercell.offsetWidth) {
			//				othercell.style.width = cell.offsetWidth+"px";
			//			}
			//			else {
			//				cell.style.width = othercell.offsetWidth + "px";
			//			}
		}
		
	}

	var controldivname = 'divcontainer';
</script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
	<table  cellpadding="0" cellspacing="0" width="90%" >
<tr align=left style=" font-family: Arial, Helvetica, sans-serif;font-style: normal;font-size:12px;">
<td>Student:&nbsp;
	&nbsp;<asp:HyperLink ID="lStudent" Font-Bold="true" runat="server" Text=""></asp:HyperLink>
&nbsp;Two-Weeks:&nbsp;<asp:DropDownList ID="ddlPeriods" runat="server" DataTextField="Title" 
		DataValueField="Start">
	</asp:DropDownList>
	&nbsp;<asp:ImageButton ID="bGo"  runat="server" ImageUrl="images/go_button.png" Text="Go" onclick="bGo_Click" />
	
</td>
<td align="right">
	<asp:ImageButton ImageUrl="Images/excel_icon2.png" ID="lbExport" runat="server" 
		onclick="lbExport_Click" ToolTip="Export to Excel" ></asp:ImageButton>
	
	</td>
</tr>
</table>
<table width="90%" border=0 cellpadding=0 cellspacing=0 >
  <tr runat="server" id="CodesRow" style="font-family: Arial, Helvetica, sans-serif;font-style: normal;font-size:12px;">
    <td>Default:</td>
  </tr>
  <tr runat="server" id="CodesRow1" style="font-family: Arial, Helvetica, sans-serif;font-style: normal;font-size:12px;">
    <td runat="server" id="tdLegend">&nbsp;</td>
  </tr>
</table>
<div style="WIDTH:90%; OVERFLOW:auto">
<asp:PlaceHolder ID="PlaceHolder1" runat="server"></asp:PlaceHolder>
</div>
<div id="divcontainer" style="HEIGHT:270px; WIDTH:90%; OVERFLOW:auto">
	<asp:GridView ID="gvEntries" runat="server" CaptionAlign="Top" 
		DataKeyNames="STUDENT_ID" onrowdatabound="gvEntries_RowDataBound" 
		AutoGenerateColumns="False" CssClass="stats2" Width="100%" ShowHeader =false>
		<RowStyle BackColor="White" />

		
		<EmptyDataTemplate>
			No Records<br />
		</EmptyDataTemplate>
		<SelectedRowStyle BackColor="#000099" Font-Bold="True" ForeColor="White" />
		<HeaderStyle CssClass="hed2" />
	</asp:GridView>
	
	</div>
			
<script language="javascript" type="text/javascript">
	SycnTables();
</script>
<div id="commentWindow" style="font-family:Arial, Helvetica, sans-serif;font-size:14px; background:#f19300;font-weight:bold;position: absolute; left: 0; top: 0; width: 200; height: 200; z-index: 1; visibility: hidden; background-color:#FFF; border:1px solid #000;">
	<table style="background:#White; padding-left:10px; padding-Right:10px;">
	<tr>
	<td colspan="7" align="center">Other Contact Types</td>
	</tr>
	<% if (Teacher.IS_ADMIN == 1)
  { %>

	<tr>
		<td><input type="checkbox" id="cbEItem"/> E</td>
    <td><input type="checkbox" id="cbQItem"/> Q</td>
    <td><input type="checkbox" id="cbOItem"/> O</td>
    <td>&nbsp;</td>
	</tr>
  <tr>
    <td><input type="checkbox" id="cbWItem"/> W</td>
		<td>
		  <select id="ddNumbers">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
      </select>
      <span id="tdNumbers">(1)</span>
		</td>
    <td><input type="checkbox" id="cbSItem"/> S</td>
		<td>
		  <select id="ddNumbers1">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
      </select>
      <span id="tdNumbers1">(1)</span>
		</td>
  </tr>
  <tr>
    <td><input type="checkbox" id="cbMItem"/> M</td>
		<td><input type="checkbox" id="cbFItem"/> F</td>
    <td><input type="checkbox" id="cbPItem"/> P</td>
    <td>&nbsp;</td>
  </tr>

  <% } else {%>
  <tr>
		<td><input type="checkbox" id="cbEItem"/> E</td>
    <td><input type="checkbox" id="cbWItem"/> W</td>
		<td>
		  <select id="ddNumbers">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
      </select>
      <span id="tdNumbers">(1)</span>
		</td>
    <td><input type="checkbox" id="cbQItem"/> Q</td>
    <td><input type="checkbox" id="cbSItem"/> S</td>
		<td>
		  <select id="ddNumbers1">
        <option value="1">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
      </select>
      <span id="tdNumbers1">(1)</span>
		</td>
	</tr>
  <tr>
    <td><input type="checkbox" id="cbMItem"/> M</td>
		<td colspan="2"><input type="checkbox" id="cbFItem"/> F</td>
    <td><input type="checkbox" id="cbPItem"/> P</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
   <% }%>
	</table>
	<table style="background:#White">
		<tr style="visibility:hidden;height:1;" >
	    <td><textarea style="position: absolute;" id="ContactMemoInformation" cols="20" rows="2"></textarea></td>
	  </tr>
	  <tr>
	    <td align="center">	
        <input id="ok" style="width:34px; height:22px;
	      background-image:url(images/ok_button.png); 	background-repeat:no-repeat; border:none;
	      cursor:pointer;" type="button" onclick="commentOk(this);return false;" value="" />
				<input id="bcancel"  style="width:70px; height:22px;
	      background-image:url(images/cancel_button.png); 	background-repeat:no-repeat; border:none;
	      cursor:pointer;" type="button" onclick="commentCancel(this);return false;" value="" />
	    </td>
	  </tr>
	</table>  
</div>
</asp:Content>

